package com.xbongbong.pro.domain.entity;

import com.xbongbong.paas.enums.bi.DataSetStatusEnum;
import com.xbongbong.paas.toolbox.util.DateTimeUtil;
import com.xbongbong.paas.toolbox.wrap.Entity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 描述信息
 *
 * @ClassName DataSetDolphinEntity
 * @Author 梁鲁江
 * 创建时间 2022/6/28 19:13
 * 修改时间  2022/6/28 19:13
 **/
@Getter
@Setter
@ToString
public class DataSetDolphinEntity extends Entity {
    private static final long serialVersionUID = 5046442140224003560L;
    /**
     * 主键id
     */
    private Long id;

    /**
     * 公司id
     */
    private String corpid;

    /**
     * 数据集id
     */
    private Long setId;
    /**
     * 数据集配置id
     */
    private Long setConfigId;
    /**
     * 状态 0新建未设置画布，1设置画布且画布配置正确
     * @see com.xbongbong.paas.enums.bi.DataSetStatusEnum
     */
    private Integer status;
    /**
     * 
     */
    private Long projectCode;
    /**
     * 
     */
    private Long processCode;
    /**
     * 
     */
    private Long taskCode;
    /**
     * 
     */
    private Integer scheduleId;

    /**
     * 创建者id
     */
    private String creatorId;

    /**
     * 创建时间
     */
    private Long addTime;

    /**
     * 更新时间
     */
    private Long updateTime;

    /**
     * 删除标记
     */
    private Integer del;

    public DataSetDolphinEntity() {
    }

    public DataSetDolphinEntity(String corpid, Long setId, Long setConfigId, Long projectCode, Long processCode, Long taskCode, Integer scheduleId, String creatorId) {
        this.corpid = corpid;
        this.setId = setId;
        this.setConfigId = setConfigId;
        this.status = DataSetStatusEnum.SUCCESS.getCode();
        this.projectCode = projectCode;
        this.processCode = processCode;
        this.taskCode = taskCode;
        this.scheduleId = scheduleId;
        this.creatorId = creatorId;
        long time = DateTimeUtil.getInt();
        this.addTime = time;
        this.updateTime = time;
        this.del = 0;
    }
}
